home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
acad
/
autolisp
/
dtl
/
dtl.doc
next >
Wrap
Text File
|
1988-07-24
|
2KB
|
42 lines
DTL.LSP
;=======================================================================
; Allegro TABLET TOOLS LISP file
; DTL.LSP
;
; Extracts a section of a drawing for a detail.
; Lines, Arcs, & Circles are trimmed to the box boundary.
; P-LINES and equal scale blocks are exploded one level in the detail
; before trimming.
;
; (c) 1988 Robert McNeel & Assoc., 1310 Ward St., Seattle, WA, 98109
;
;=======================================================================
DTL.LSP asks for two corners which define a rectangle to be 'extracted '
from a drawing to form a detail. It then asks for a new point for the
first corner. This is a point at which to locate the corner of the
detail being created. Next you are asked for a scale factor. This is a
ratio of size in the origional drawing to size of the new detail. For
example, to make the detail a 2x enlargement, use 2.
The routine then copies out all of the entities crossing the rectangle
specified to the new location and scales them. Blocks and polylines are
exploded one level and a new selection set of entities in the detail is
made. The routine then calculates what is inside and outside of the
rectangular area for the new detail and trims off the excess.
Polylines in blocks aren't exploded, nor are nested blocks. The more
things like that included, the slower the execution. The execution
time is not too bad if the entities selected for the detail aren't too
many, but you can easily bog it down with big groups of information.
The points used for trimming entities are: Lines - endpoints, Arcs -
endpoints and quadrant points, Circles - quadrant points.
Other types of entities are copied out to the detail, but ignored in the
trimming.
Lowell Walmsley
Robert McNeel & Assoc
1310 Ward St. Suite 200
Seattle, WA 98109